﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cat_Miau
{
    class Cat
    {

        // 1. fields

        private string name;
        private string color;

        // 2.1 default constructor
        public Cat()
        {
        }
        // 2.2 constructor with properties
        public Cat(string name, string color)
        {
            this.name = name;
            this.color = color;
        }

        // 3.1 properties - name
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        // 3.2 properties - color
        public string Color
        {
            get { return this.color; }
            set { this.color = value; }
        }

        // method

        public void SayMiau()
        {
            Console.WriteLine("Cat {0} said Miauuuuu!",this.name);
        }

    }
}
